/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.totoland.db.student.dao.impl;

import com.totoland.db.dao.BaseDao;
import com.totoland.db.entity.StudentInfo;
import com.totoland.db.student.dao.StudentInfiDao;
import org.springframework.stereotype.Repository;

/**
 *
 * @author totoland
 */
@Repository
public class StudentInfiDaoImpl extends BaseDao implements StudentInfiDao{

    @Override
    public StudentInfo getStudentInfo(String searching) {
        return (StudentInfo)findUniqNativeQuery("SELECT * FROM StudentInfo WHERE StudentID = ?", StudentInfo.class,searching);
    }
    
}
